package com.example.soa2.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

@Data
@TableName("user_profile")
public class UserProfile {
    @TableId(type = IdType.AUTO)
    private String id;
    @NotBlank(message = "name can't be empty")
    private String name;
    @NotBlank(message = "sex can't be empty")
    private String sex;
    @NotBlank(message = "age can't be empty")
    private int age;
    @NotBlank(message = "identity can't be empty")
    private String identity;
    @NotBlank(message = "telephone can't be empty")
    private String telephone;
    @NotBlank(message = "message can't be empty")
    private String email;
    private String create_time;
    private String update_time;
}
